/*
 *    Copyright (c) 2018-2025, seefa All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: seefa
 */

import request from '@/router/axios'

export function getSupplementList(query) {//待补充担保函列表
  return request({
    url: '/cpls/api/signingForPayment/getSupplementList',//cpls
    method: 'post',
    data: query
  })
}
export function getCloudViewUrl(query) {//云盘地址
  return request({
    url: '/cpls/api/basicSys/getCloudViewUrl',//cpls
    method: 'get',
    params: query
  })
}
export function getAllProject(query) {//项目登记列表
  return request({
    url: '/cpls/api/basicSys/getAllProject',//cpls
    method: 'post',
    data: query
  })
}
export function getAllProvinceList(query) {//省
  return request({
    url: '/cpls/api/basicSys/getAllProvinceList',//cpls
    method: 'get',
    params: query
  })
}
export function getChildByareaCode(query) {//市
  return request({
    url: '/cpls/api/basicSys/getChildByareaCode',//cpls
    method: 'get',
    params: query
  })
}

export function getLoanProjectbyId(query) {//获取项目查看信息
  return request({
    url: '/cpls/api/basicSys/getLoanProjectbyId',//cpls
    method: 'get',
    params: query
  })
}
export function add(query) {//添加项目查看信息
  return request({
    url: '/cpls/api/basicSys/add',//cpls
    method: 'post',
    data: query
  })
}
export function submitSupplement(query) {//待补充担保函提交
  return request({
    url: '/cpls/api/signingForPayment/submitSupplement',//cpls
    method: 'post',
    data: query
  })
}

